﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Security;

using SH.LMS.Common.UI.Cookie;
using SH.LMS.Common.UI;
using One.Framework.UI.Security;

namespace SH.LMS.Web.UI.Account
{
    public partial class Login : BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            CookieManager.SetCookie(UserInfo.Cookies.UserName, "홍길동", string.Empty, CookieProtection.All);
            CookieManager.SetCookie(UserInfo.Cookies.UserID, "hongkildong", string.Empty, CookieProtection.All);
            CookieManager.SetCookie(UserInfo.Cookies.Email, "abc@nate.com", string.Empty, CookieProtection.All);

            //권한그룹 인증쿠키생성(사용자아이디:사용자명:사용자그룹번호배열,보유권한그룹번호배열,보유권한그룹명배열)
            string sUserData = string.Format("{0}:{1}",
                "hongkildong",
                "홍길동");


            FormAuthentication.SetTicket("hongkildong", sUserData, null);
            if (CurrentUser.IsLogin)
            {
                
            }
        }

        public static void aa()
        { 
            
        }
    }
}
